package yueyong.salarymanagement.module.business.salary.domain.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 角色添加DTO
 *
 * @author listen
 * @date 2017/12/28 09:40
 */
@Data
public class CompanyAddDTO {

    @ApiModelProperty("公司名称")
    @NotNull(message = "公司名称不能为空")
    @Length(min = 1, max = 20, message = "角色名称(1-20)个字符")
    private String companyName;

    @ApiModelProperty("公司地址")
    @Length(max = 255, message = "公司地址最多255")
    private String address;

    @ApiModelProperty("公司税号")
    @Length(min = 1, max = 50, message = "公司税号")
    private String taxNumber;


}
